/**
 * FindConnectedRegion.h 
 * header file to define the class of bing feature
 * 
 * @author xyyuan
 * @date Mar, 4, 2014
 *
 */
#include "Global.h"


#ifndef BING_FEATURE_H
#define BING_FEATURE_H

#define MAX_SORT_COUNT 1024

class BingFeature
{

private:
	Mat origImage;
	Mat NGImage;

	// Calculate the Normed Gradients
	bool calNGImage();
	Mat calNGImage(Mat input);

public:
	BingFeature();
	~BingFeature();

	// Set the original image
	bool setOrigImage(string filename);
	bool setOrigImage(Mat image);

	// Show 8*8 NG feature
	bool showNGFeature(Rect rect);
	bool showNGFeature(Rect rect, string windowname);

};



#endif